//
//  RoomValidTimeApi.m
//  SmartiOSPublisher
//
//  Created by Liu,Qingcan on 2017/4/26.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import "RoomValidTimeApi.h"

@implementation RoomValidTimeApi{
    NSInteger _roomId;
}
- (id)initWithRoomId:(NSInteger)roomId{
    self = [super init];
    if (self) {
        _roomId = roomId;
    }
    return self;
}

- (YTKRequestSerializerType)requestSerializerType{
    return YTKRequestSerializerTypeJSON;
}

- (NSString *)requestUrl{
    return @"/room/get_validtime";
}

- (YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

- (id)requestArgument{
        return @{
                 @"id":[NSNumber numberWithInteger:_roomId]
                 };
    
}


@end
